package com.song.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author tonysong
 * @since 2024-04-29
 */
@TableName("book_book")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 图书编号
     */
    @TableId(value = "bid", type = IdType.AUTO)
    private Integer bid;

    /**
     * 图书名称
     */
    private String title;

    /**
     * 作者
     */
    private String author;

    /**
     * 图书价格
     */
    private BigDecimal price;

    /**
     * 库存数量
     */
    private Integer balace;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 最后修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 图书状态
     */
    private Integer enabled;

    /**
     * 出版社外键
     */
    private Integer cid;

    /**
     * 图书类别外键
     */
    private Integer tid;

    /**
     * 图书描述
     */
    private String descb;

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getBalace() {
        return balace;
    }

    public void setBalace(Integer balace) {
        this.balace = balace;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getDescb() {
        return descb;
    }

    public void setDescb(String descb) {
        this.descb = descb;
    }

    @Override
    public String toString() {
        return "Book{" +
            "bid = " + bid +
            ", title = " + title +
            ", author = " + author +
            ", price = " + price +
            ", balace = " + balace +
            ", createTime = " + createTime +
            ", updateTime = " + updateTime +
            ", enabled = " + enabled +
            ", cid = " + cid +
            ", tid = " + tid +
            ", descb = " + descb +
        "}";
    }
}
